﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using BusinessManagementStudio.Models.BusinessObject.Entities;

namespace BusinessManagementStudio.Utilities.PDF_Templates
{
    public class PDF_QuotationInvoice : PDFMainClass
    {
        public List<Quotation> QuotationList { get; set; }
        public bool IsJLLOrderQuotation { get; set; }
        public bool IsJLLPOQuotation { get; set; }

        public Invoice JOInvoice { get; set; }
        public Order JOOrder { get; set; }
        public bool IsJLLOrderInvoice { get; set; }
        public Invoice JPOInvoice { get; set; }
        public Order JPO { get; set; }
        public bool IsJLLPOInvoce { get; set; }

        
        public void SetPDfFileName()
        {
            if (IsQuotation == true && IsInvoice == false)
                PDFFileName = "QUO_" + QuotationNo + ".pdf";
            else if (IsQuotation == false && IsInvoice == true)
                PDFFileName = "INV_" + InvoiceNo + ".pdf";
        }
    }
}